<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Post extends Model
{
    use HasFactory;
    // protected $fillable = ['title', 'content'];
    protected $table = 'posts';
    // protected $hidden = ['created_at', 'updated_at'];
    // protected $primaryKey = 'id';
    // public $timestamps = false;

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
